module.exports = {
    modules: {
        "localhost": "admin",
        "test.com": "api"
    },

    db: {
        host: 'localhost',
        user: 'root',
        password: '123456',
        database: 'bookkeeping',
        charset: 'utf8',
        port: 3306,
        acquireTimeout: 15000,//连接时间
        connectionLimit: 100,//最大连接数
        waitForConnections: true,//超最大连接数时排队
        queueLimit: 0//允许排队的最大数量 0不做限制
    },
    // token配置
    tk: {
        secret: 'xyz',//token秘钥

        time: {
            expiresIn: 36000
        },

        path: [
            '/',
            '/user/login',
            '/user/logup',
            '/user/restpaw',
            '/user/changheader',
            '/community/articp',
            '/user/sendtele',

        ]

    },
    session: {
        secret: 'my-key',    //秘钥
        key: 'aid',
        resave: false,
        saveUninitialized: true,
        cookie: ('name', 'value', {
            maxAge: 36000000,
            secure: false
        })
    },
    // 短信验证码配置
    qcobj: {
        // 短信应用 SDK AppID
        appid: 1400600090,  // SDK AppID 以1400开头
        // 短信应用 SDK AppKey
        appkey: "92b5e75cc61d5db20069c48fce2781bf",
        // 短信模板 ID，需要在短信控制台中申请
        templateId: 1210717,  
        // 签名
        smsSign: "朱振鹏的学习笔记",
        //随机验证码
        random: String(Math.round(Math.random() * 1000000))
    }
}